package org.chen.ctrip.feign;

import org.chen.common.system.province.ProvinceCapital;
import org.chen.common.result.ResultVO;
import org.chen.ctrip.feign.fallback.SystemFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "data-system" , fallback = SystemFeignFallback.class)
public interface SystemClient {

    @GetMapping("/cities/search")
    ResultVO<ProvinceCapital> getSceneCityIdByName(@RequestParam(name = "name") String name);

}
